﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="imageNewsList.aspx.cs"
    Inherits="WuxiWTO.Web.backend.imageNewsList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script>
    <link rel="Stylesheet" href="admin.css" type="text/css" media="screen" />
    <script type="text/javascript">
        $(document).ready(function () {
            var $bg;
            var $bg2;
            $(".GV_Item").hover(function () {
                $bg = $(this).css("background-color");
                $(this).css("background-color", "#c1ebff");
            },
            function () {
                $(this).css("background-color", $bg);
            }
            );
            $(".GV_Alternat").hover(function () {
                $bg2 = $(this).css("background-color");
                $(this).css("background-color", "#c1ebff");
            },
            function () {
                $(this).css("background-color", $bg2);
            }
            );
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <div id="header">
            &nbsp;
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="30" background="tab/images/tab_05.gif">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="12" height="30">
                                <img src="tab/images/tab_03.gif" width="12" height="30" />
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="46%" valign="middle">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="5%">
                                                        <div align="center">
                                                            <img src="tab/images/tb.gif" width="16" height="16" /></div>
                                                    </td>
                                                    <td width="95%" class="STYLE1" align="left">
                                                        <span class="boldText">你当前的位置</span>：[内容页面管理]-[图片新闻管理]
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                            <ul>
                                                <li>
                                                    <img width="14" height="14" alt="新建图片新闻" src="tab/images/22.gif" />
                                                    <a title="新建图片新闻" href="imageNewsEdit.aspx">新建图片新闻</a> </li>
                                            </ul>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16">
                                <img src="tab/images/tab_07.gif" width="16" height="30" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="8" background="tab/images/tab_12.gif">
                                &nbsp;
                            </td>
                            <td align="center" style="padding: 3px 2px;">
                                <asp:Repeater ID="rptLinks" runat="server" OnItemDataBound="rptLinks_ItemDataBound"
                                    OnItemCommand="rptLinks_ItemCommand">
                                    <HeaderTemplate>
                                        <table width="600px" class="GV" cellspacing="1" border="0" id="gvNewsKind">
                                            <tr class="GV_Header">
                                                <th scope="col">
                                                    No
                                                </th>
                                                <th scope="col">
                                                    图片
                                                </th>
                                                <th scope="col">
                                                    新闻标题
                                                </th>
                                                <th scope="col">
                                                    操作
                                                </th>
                                            </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr class="GV_Item">
                                            <td style="width:60px;">
                                                <asp:Label ID="lblNo" runat="server"></asp:Label>
                                            </td>
                                            <td style="width:150px;">
                                                <img width="100" height="80" src='../<%# Eval("image_path") %>' alt='<%# Eval("news_title") %>' />
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTitle" runat="server"></asp:Label>
                                            </td>
                                           
                                            <td style="width: 80px;">
                                                <a href='imageNewsEdit.aspx?id=<%#Eval("ID")%>'>编辑</a>&nbsp;&nbsp;
                                                <asp:LinkButton Text="删除" ID="btnDelete" runat="server" CommandArgument='<%# Eval("ID")%>'
                                                    CommandName="DeleteCate" CausesValidation="false" />
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <AlternatingItemTemplate>
                                         <tr class="GV_Item">
                                            <td style="width:60px;">
                                                <asp:Label ID="lblNo" runat="server"></asp:Label>
                                            </td>
                                            <td style="width:150px;">
                                                <img width="100" height="80" src='../<%# Eval("image_path") %>' alt='<%# Eval("news_title") %>' />
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTitle" runat="server"></asp:Label>
                                            </td>
                                           
                                            <td style="width: 80px;">
                                                <a href='imageNewsEdit.aspx?id=<%#Eval("ID")%>'>编辑</a>&nbsp;&nbsp;
                                                <asp:LinkButton Text="删除" ID="btnDelete" runat="server" CommandArgument='<%# Eval("ID")%>'
                                                    CommandName="DeleteCate" CausesValidation="false" />
                                            </td>
                                        </tr>
                                    </AlternatingItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                                <table cellpadding="0" cellspacing="0" align="center" width="600px">
                                    <tr>
                                        <td align="left">
                                            <webdiyer:aspnetpager id="AspNetPager1" runat="server" width="600px" submitbuttonimageurl="admin/tab/images/go.gif"
                                                cssclass="taobao" currentpagebuttonclass="cpb" alwaysshow="true" buttonimagealign="Bottom"
                                                prevpagetext="上一页" nextpagetext="下一页" firstpagetext="首页" lastpagetext="尾页" showfirstlast="true"
                                                pagesize="15" currentpagebuttonposition="End" custominfohtml="第%CurrentPageIndex%/%PageCount%页，共%RecordCount%条记录,每页%PageSize%条"
                                                pageindexboxtype="DropDownList" showcustominfosection="Left" showpageindexbox="Never"
                                                submitbuttontext="Go" textafterpageindexbox="页" textbeforepageindexbox="转到" onpagechanged="AspNetPager1_PageChanged">
                                            </webdiyer:aspnetpager>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="8" background="tab/images/tab_15.gif">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="35" background="tab/images/tab_19.gif">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="12" height="35">
                                <img src="tab/images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td align="center">
                            </td>
                            <td width="16">
                                <img src="tab/images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
